<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <base href="<%=basePath%>">
<head>
    <title>Title</title>
<link rel="stylesheet" type="text/css" href="view/bootstrap-3.3.5/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="view/bootstrapvalidator/css/bootstrapValidator.css" />
<script charset="utf-8" src="view/jquery/jquery-1.10.2.min.js"></script>
<script charset="utf-8" src="view/bootstrap-3.3.5/js/bootstrap.js"></script>
<script charset="utf-8" src="view/bootstrapvalidator/js/bootstrapValidator.js"></script>
</head>
<body>

<c:set value="${requestScope.js}" var="j"></c:set>
<br>
<br>
<br>
<br>
<br>
<div class="container">
    <div class="col-md-8 col-md-offset-2">
        <table class="table table-bordered table-hover">
            <tbody>
            <tr>
                <th>发送人:</th>
                <td colspan="2">${j.duanxiaoxi.employee.empName}</td>
            </tr>
            <tr>
                <th>发送时间:</th>
                <td colspan="2">${j.duanxiaoxi.createDate}</td>
            </tr>
            <tr>
                <th>上次阅读时间:</th>
                <td colspan="2">${j.yuedushijian}</td>
            </tr>
            <tr>
                <th>标题:</th>
                <td colspan="2">${j.duanxiaoxi.biaoti}</td>
            </tr>
            <tr>
                <th>内容:</th>
                <td colspan="2">${j.duanxiaoxi.neirong}</td>
            </tr>
             <tr>
                <th>接收人:</th>
                <td colspan="2">${sessionScope.empname}</td>
            </tr>
            <tr>
                <th>附件:</th>
                <td>${j.duanxiaoxi.files}</td>
                <td >
                    <c:if test="${!empty j.duanxiaoxi.files}">
                        <button type="button"><a href="duanXiaoXi/xiazai?fileName=${j.duanxiaoxi.files}">下载</a></button>
                    </c:if>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center"><button type="button"><a href="duanXiaoXi/selectYiDu">确认</a></button></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>
